# coding=utf-8
__author__ = 'wenke1'

import  os

def bubblesort(*ltp):
    lt = list(ltp)
    for i in range(1, len(lt)):
        for j in range(0, len(lt) - i):
            if lt[j] > lt[j + 1]:
                lt[j], lt[j + 1] = lt[j + 1], lt[j]

    return lt

list1 = [1, 4, 6, 3, 2]
tuple1= (4,5,2,8)
print bubblesort(*list1)
print bubblesort(*tuple1)

def findAllfile(dir='.'):
    f=os.listdir(dir)
    return f

print findAllfile()

print os.listdir('D:\pythonTraining\pythonTraining')

print findAllfile('D:\pythonTraining\pythonTraining')